package com.itnoob.demos;

/**
 * 外观类
 * @author zhoujun
 * @date 2025/3/20 23:30
 */
public class Facade {

    private SubSystemA subSystemA;
    private SubSystemB subSystemB;
    private SubSystemC subSystemC;

    public Facade(){
        this.subSystemA = new SubSystemA();
        this.subSystemB = new SubSystemB();
        this.subSystemC = new SubSystemC();
    }

    public void doSomething(){
        subSystemA.methodA();
        subSystemB.methodB();
        subSystemC.methodC();
    }
}
